
// 学段列表
const stagesList = {
    uri: '/user-center/listStage',
    queries: {
        withAllStage: true
    },
    method: 'post',
    data: null,
    options: {
        allowDupRequest: true // 允许重复请求
    }
}

// 学段学科数据
const listStageRefSubject = {
    uri: '/user-center/listStageRefSubject',
    data: null,
    method: 'post',
    queries: {
        withAllStage: false,
        withAllSubject: false,
        withMultipleStage: false
    },
    options: {
        allowDupRequest: true // 允许重复请求
    }
}

// 省市区域，省市区树结构
const getAreas = {
    uri: '/user-center/region/listAll',
    method: 'post',
    queries: null,
    data: {
      withDefault: false
    }
}

// 异步获取省市区
const regionList = {
    uri: '/user-center/region/get/v2',
    method: 'post',
    queries: null,
    data: {
        pid: false
    }
}

// 获取前台用户列表
const getUserList = {
    uri: '/user-center/listUserPage',
    method: 'post',
    queries: null,
    data: {
        loginName: false,
        mobile: false,
        pageIndex: false,
        pageSize: false,
        realName: false, // 用户名
        yn: false // 1有效 0禁用
    },
    options: {
        allowDupRequest: true // 允许重复请求
    }
}

export default {
    stagesList,
    listStageRefSubject,
    getAreas,
    regionList,
    getUserList
}